package controller;


import com.yhd.commonauth.annotation.Authorization;
import com.yhd.commonauth.annotation.PassAuthorization;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Liuzr
 * @since 2020-12-30
 */
@Authorization("consumerAuthentication")
@RestController
@RequestMapping("/goodsInfo2")
public class GoodsInfo2Controller {


    @PostMapping(value = "/add")
    public Object add(@RequestBody String string) {
        return null;
    }

    @PassAuthorization
    @PostMapping(value = "/{id}")
    public Object get(@PathVariable Long id) {
        return null;
    }
}

